import Vue from 'vue'
import Router from 'vue-router'
import routes from './routes'
import home from '../components/home/home.vue'
import index from '../components/index/index.vue'

import Example from '../components/example/example.vue'

import '../components/viewport/viewport.vue'

const ZhCNChildren = [{
  path: '',
  component: index
},
{
  path: 'example',
  component: Example
}
].concat(routes)

Vue.use(Router)
export default new Router({
  routes: [{
    path: '/',
    component: home,
    children: ZhCNChildren
  }]
})
